.main-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.index-banner{
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    height: 300px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.index-banner .carousel-inner {
    height: 100%;
    border-radius: 15px;
}

.index-banner .carousel-item {
    height: 100%;
}

.index-banner img{
    width: 500px;
    height: 280px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.index-banner .carousel-item:hover img {
    transform: scale(1.05);
}

.index-banner .carousel-control-prev,
.index-banner .carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.index-banner:hover .carousel-control-prev,
.index-banner:hover .carousel-control-next {
    opacity: 0.8;
}

.index-banner .carousel-indicators {
    margin-bottom: 10px;
}

.index-banner .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

.index-banner .carousel-indicators li.active {
    background-color: white;
}

.banner-sidebar {
    width: 100%;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.post-btn-container {
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.post-btn-container .btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.post-btn-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.board-list-container {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;
    margin-top: 15px;
    border: 1px solid #e9ecef;
    padding: 15px;
}

.board-section-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.board-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.board-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.board-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.board-card.active {
    border: 2px solid #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.board-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    color: #2c3e50;
    text-decoration: none;
    height: 100%;
}

.board-card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #007bff;
}

.board-card-content {
    text-align: center;
}

.board-card-content h5 {
    margin: 0 0 5px 0;
    font-weight: 600;
}

.board-card-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

.board-list-container .list-group-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
    transition: all 0.3s ease;
    text-align: center;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 500;
    color: #495057;
}

.board-list-container .list-group-item:first-child {
    border-top: none;
    background-color: #4a76a8;
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 15px;
}

.board-list-container .list-group-item:last-child {
    border-bottom: none;
}

.board-list-container .list-group-item:hover {
    background-color: #f1f8ff;
    transform: translateY(-1px);
    color: #007bff;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.pagination .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    margin: 0 3px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0056b3;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.board-list-container .list-group-item.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    font-weight: 600;
}

.lg-container {
    width: 100%;
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f1f1f1;
}

.post-group{
    background: white;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-group-head {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.post-group-head .post-group-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.post-group-head .post-group-filter {
    display: flex;
    gap: 10px;
}

.post-group-head .post-group-filter a {
    color: #6c757d;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.post-group-head .post-group-filter a:hover {
    background: #e9ecef;
}

.post-group-head .post-group-filter a.active {
    background: #007bff;
    color: white;
}

.post-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.post-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-card-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}

.author-info {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    display: flex;
    flex-direction: column;
}

.author-name span {
    font-weight: 600;
    color: #2c3e50;
}

.author-name small {
    color: #6c757d;
    font-size: 0.75rem;
}

.post-board-tag {
    background: #e9f5ff;
    color: #007bff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-card-content {
    padding: 15px;
}

.post-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #007bff;
}

.post-summary p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.post-card-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #f1f1f1;
}

.post-stats {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
}

.stat-item i {
    margin-right: 5px;
}

@media (min-width: 768px) {
    .post-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .lg-container {
        flex-direction: column;
    }
    
    .banner-sidebar {
        width: 100%;
        margin-top: 20px;
    }
    
    .post-btn-container {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .board-list-container {
        width: 100%;
    }
    
    .index-banner {
        height: 200px;
    }
    
    .index-banner img {
        height: 200px;
    }
    
    .post-list-group li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 0;
    }
    
    .author-avatar-group {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .post-info-group {
        text-align: center;
    }
    
    .post-info-group .post-info {
        justify-content: center;
    }
}